package com.xzgj.fmmall.vo;

import com.xzgj.fmmall.entity.Interests;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "User对象",description = "用户/买家信息")
public class UserVO {

    @ApiModelProperty(value = "用户id",required = false)
    private static final long serialVersionUID = 1L;
    private Integer userId;
    @ApiModelProperty(dataType = "userName",required = true,value = "用户注册账号")
    private String userName;
    @ApiModelProperty(dataType = "password",required = true,value = "用户注册密码")
    private String password;
    @ApiModelProperty(dataType = "userRealName",required = true,value = "用户真实姓名")
    private String userRealName;
    @ApiModelProperty(dataType = "userImg",required = true,value = "用户头像url")
    private String userImg;
    @ApiModelProperty(dataType = "age",required = true,value = "用户年龄")
    private int age;
    @ApiModelProperty(dataType = "interests",required = true,value = "用户兴趣爱好对象")
    private List<Interests> interests;
    @ApiModelProperty(dataType = "nickname",required = true,value = "用户昵称")
    private String nickname;
    @ApiModelProperty(dataType = "userMobile",required = true,value = "用户手机")
    private String userMobile;
    @ApiModelProperty(dataType = "userSex",required = true,value = "用户性别")
    private String userSex;
    @ApiModelProperty(dataType = "userBirth",required = true,value = "用户生日")
    private Date userBirth;
    @ApiModelProperty(dataType = "userRegtime",required = true,value = "用户注册时间")
    private Date userRegtime;
    @ApiModelProperty(dataType = "userModtime",required = true,value = "用户更新时间")
    private Date userModtime ;
    @ApiModelProperty(dataType = "userEmail",required = true,value = "用户邮箱")
    private String userEmail;
    @ApiModelProperty(dataType = "token",required = true,value = "用户token")
    private String token;
    @Override
    public String toString() {
        return "User [userId=" + userId +
                ", userName=" + userName +
                ", password=" + password +
                ", age=" + age +
                ", interests=" + interests +
                ", author=" + "]";
    }

}
